﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainMasterPage.master" AutoEventWireup="true"
    CodeFile="StudentManagerment.aspx.cs" Inherits="Modeling_Sub_Pages_NewsPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        #main
        {
            min-width: 1300px;
        }
        #center
        {
            margin-top: 15px;
        }
        #left
        {
            margin-top: 15px;
        }
        .toCenter
        {
            margin-left: auto;
            margin-right: auto;
        }
        .linkNotchange:visited
        {
            color: #0000CC;
        }
        .dataPagerButton
        {
            text-decoration: none;
            font-size: 15px;
            font-weight: bold;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="Server">
    <div id="left">
        <table>
            <tr>
                <td>
                    <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/Staff/AdmissionManager.aspx"
                        CssClass="LinkStyle1">Admission Managerment</asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td id="activeTD">
                    <asp:HyperLink ID="HyperLink6" runat="server" NavigateUrl="~/Staff/StudentManagerment.aspx"
                        CssClass="activeLink">Student Managerment</asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:HyperLink ID="HyperLink5" runat="server" NavigateUrl="~/Staff/ScoresManagerment.aspx"
                        CssClass="LinkStyle1">Scores Managerment</asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Staff/EventManagerment.aspx"
                        CssClass="LinkStyle1">Events Managerment</asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/Staff/NewsManagerment.aspx"
                        CssClass="LinkStyle1">News Managerment</asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="~/Staff/CoursesManagerment.aspx"
                        CssClass="LinkStyle1">Course Managerment</asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:HyperLink ID="HyperLink7" runat="server" NavigateUrl="~/Staff/CoursesRegisManager.aspx"
                        CssClass="LinkStyle1">Course Regis Manager...</asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:HyperLink ID="HyperLink9" runat="server" NavigateUrl="~/Staff/FeedbackManager.aspx"
                        CssClass="LinkStyle1">Feedback Managerment</asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:HyperLink ID="HyperLink8" runat="server" NavigateUrl="~/Staff/ChangePassword.aspx"
                        CssClass="LinkStyle1">Change Password</asp:HyperLink>
                </td>
            </tr>
        </table>
    </div>
    <div id="center">
        <table width="100%">
            <tr>
                <td align="center">
                    <asp:Label ID="Label1" runat="server" Text="Student Managerment" Font-Size="20pt"
                        ForeColor="#990033"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="center">
                    <asp:Label ID="Label4" runat="server" Text="Student ID: "></asp:Label>
                    <asp:TextBox ID="txtID" runat="server"></asp:TextBox>
                    <asp:Button ID="Button1" runat="server" Text="Search" OnClick="btnSearch_Click" />
                </td>
            </tr>
            <tr>
                <td align="center">
                    <asp:Label ID="Label2" runat="server" Text="First Name: "></asp:Label>
                    <asp:TextBox ID="txtFirstName" runat="server"></asp:TextBox>
                    <asp:Label ID="Label3" runat="server" Text="Last Name: "></asp:Label>
                    <asp:TextBox ID="txtLastName" runat="server"></asp:TextBox>
                    <asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="GridView1" runat="server" EnableModelValidation="True" CssClass="toCenter"
                        BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" CellPadding="2"
                        ForeColor="Black" GridLines="Both" OnRowDeleting="GridView1_RowDeleting" OnRowDataBound="GridView1_RowDataBound"
                        AutoGenerateColumns="False" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging"
                        PageSize="20">
                        <Columns>
                            <asp:HyperLinkField Text="Add" NavigateUrl="AddStudent.aspx" ControlStyle-CssClass="linkNotchange">
                                <ControlStyle CssClass="linkNotchange"></ControlStyle>
                            </asp:HyperLinkField>
                            <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="EditStudent.aspx?id={0}"
                                Text="Edit" ControlStyle-CssClass="linkNotchange">
                                <ControlStyle CssClass="linkNotchange"></ControlStyle>
                            </asp:HyperLinkField>
                            <asp:ButtonField Text="Delete" ItemStyle-ForeColor="#0000CC" CommandName="Delete">
                                <ItemStyle ForeColor="#0000CC"></ItemStyle>
                            </asp:ButtonField>
                            <asp:ImageField HeaderText="Image" DataImageUrlField="I" DataImageUrlFormatString="{0}"
                                NullImageUrl="../Image/noimage.jpg" ControlStyle-Width="60" ControlStyle-Height="80">
                                <ControlStyle Height="80px" Width="60px"></ControlStyle>
                            </asp:ImageField>
                            <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" />
                            <asp:BoundField DataField="Full Name" HeaderText="Full Name" SortExpression="Full Name" />
                            <asp:BoundField DataField="Username" HeaderText="Username" SortExpression="Username" />
                            <asp:BoundField DataField="Gender" HeaderText="Gender" SortExpression="Gender" />
                            <asp:BoundField DataField="Date of Birth" HeaderText="Date of Birth" SortExpression="Date of Birth" />
                            <asp:BoundField DataField="City" HeaderText="City" SortExpression="City" />
                            <asp:BoundField DataField="Phone Number" HeaderText="Phone Number" SortExpression="Phone Number" />
                            <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
                        </Columns>
                        <PagerSettings Mode="NextPrevious" NextPageText="Next►" PreviousPageText="◄Previous" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
